package lab.domain;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class ID3v1Tag extends Record<ID3v1Tag> implements Serializable {
    
    protected Genre genre;

    public Genre getGenre() {
        return genre;
    }

    public void setGenre(Genre genre) {
        this.genre = genre;
        notifyChanged();
    }

    @Override
    public void copy(ID3v1Tag object) {
        super.copy(object);
        this.genre = object.genre;
    }

    @Override
    public Record clone() {
        ID3v1Tag tag = (ID3v1Tag) super.clone();
        tag.genre = (Genre) genre.clone();
        return tag;
    }
}
